package com.fowo.api.model.receivable.product;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ContentStyle;
import com.alibaba.excel.enums.poi.HorizontalAlignmentEnum;
import javax.validation.constraints.*;
import lombok.Getter;
import lombok.Setter;

/** 应收单子表 导入导出辅助模型 */
@Getter
@Setter
public class ReceivableProductExcelPo {

  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "所属应收单")
  private String parentIdAccountType;

  @ExcelIgnore
  @ExcelProperty(value = "所属应收单")
  private Long parentId;

  @Size(max = 50, message = "物料编码长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "物料编码")
  private String productCodeName;

  @ExcelIgnore
  @ExcelProperty(value = "物料编码")
  private Long productCode;

  @Size(max = 50, message = "SKU长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "SKU")
  private String productSku;

  @Size(max = 50, message = "物料名称长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "物料名称")
  private String productName;

  @ExcelProperty(value = "计价数量")
  private Integer num;

  @ExcelProperty(value = "单价")
  private java.math.BigDecimal price;

  @ExcelProperty(value = "应收金额")
  private java.math.BigDecimal amount;
}
